/*    */ package com.zimbra.cs.service.mail;
/*    */ 
/*    */ import com.zimbra.common.service.ServiceException;
/*    */ import com.zimbra.common.soap.Element;
/*    */ import com.zimbra.common.soap.MailConstants;
/*    */ import com.zimbra.common.soap.SoapFaultException;
/*    */ import com.zimbra.cs.mailbox.MailItem.Type;
/*    */ import com.zimbra.soap.ZimbraSoapContext;
/*    */ import java.util.Map;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class MsgAction
/*    */   extends ItemAction
/*    */ {
/*    */   public Element handle(Element request, Map<String, Object> context)
/*    */     throws ServiceException, SoapFaultException
/*    */   {
/* 36 */     ZimbraSoapContext lc = getZimbraSoapContext(context);
/*    */     
/* 38 */     Element action = request.getElement("action");
/* 39 */     String operation = action.getAttribute("op").toLowerCase();
/*    */     
/* 41 */     String successes = handleCommon(context, request, operation, MailItem.Type.MESSAGE);
/*    */     
/* 43 */     Element response = lc.createElement(MailConstants.MSG_ACTION_RESPONSE);
/* 44 */     Element act = response.addUniqueElement("action");
/* 45 */     act.addAttribute("id", successes);
/* 46 */     act.addAttribute("op", operation);
/* 47 */     return response;
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/service/mail/MsgAction.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */